//
// Created by zx208 on 2024/10/27.
//

#include "../../define.h"
#include <stdio.h>
#include <stdlib.h>

#ifndef _SequenceQueue_H
#define _SequenceQueue_H

#define MAXQUEUE 100

typedef int ElemType;

typedef struct SqQueue{
    ElemType *base;
    int front, rear;
} SqQueue;

Status InitQueue(SqQueue *Q);
Status Entry_SQ(SqQueue *Q, ElemType e);
Status Out_SQ(SqQueue *Q, ElemType *e);
Status IsEmpty_SQ(SqQueue *Q);
Status IsFull_SQ(SqQueue *Q);
Status GetFront(SqQueue *Q, ElemType *e);
int LengthQueue(SqQueue *Q);

#endif //_SequenceQueue_H
